package com.hjl.spring6.resource.service;

import com.hjl.spring6.resource.dao.UserDao;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * @author ServivE
 * @version 0.1
 * @className UserServiceImpl
 * @description
 * @date 2024/8/6 19:26
 * @since jdk11
 */
@Service(value = "myUserService")
public class UserServiceImpl implements UserService {
    //不指定名称，根据属性名称进行注入
    @Resource
    private UserDao myUserDao;
    @Override
    public void addUserService() {
        System.out.println("service....");
        myUserDao.add();
    }
}
